package com.example.demo2.Service;

import com.example.demo2.biz.Answerbiz;
import com.example.demo2.entity.answerRecord;
import com.example.demo2.mapper.Answermapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class answerimpl implements Answerbiz {
    private @Autowired Answermapper answermapper;
    private @Autowired Answerbiz answerbiz;
    @Override
    public void saveanswer(answerRecord answerRecord) throws Exception {
        answermapper.saveanswer(answerRecord);
    }

    @Override
    public List<answerRecord> getanswerRecord(String openID) {

        return answermapper.getanswerRecord(openID);
    }

    @Override
    public List<answerRecord> getrank() {
        return answermapper.getrank();
    }
}
